package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.OpenControllerDao;
import com.platform.entity.OpenControllerEntity;
import com.platform.service.OpenControllerService;

/**
 * Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-06-17 09:46:05
 */
@Service("openControllerService")
public class OpenControllerServiceImpl implements OpenControllerService {
    @Autowired
    private OpenControllerDao openControllerDao;

    @Override
    public OpenControllerEntity queryObject(Integer id) {
        return openControllerDao.queryObject(id);
    }

    @Override
    public List<OpenControllerEntity> queryList(Map<String, Object> map) {
        return openControllerDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return openControllerDao.queryTotal(map);
    }

    @Override
    public int save(OpenControllerEntity openController) {
        return openControllerDao.save(openController);
    }

    @Override
    public int update(OpenControllerEntity openController) {
        return openControllerDao.update(openController);
    }

    @Override
    public int delete(Integer id) {
        return openControllerDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return openControllerDao.deleteBatch(ids);
    }
}
